<template>
  <div class="category">
    <h3>{{ title }}分类</h3>
    <slot>我是一些默认值，当组件没有传递具体结构时，我会出现</slot>
    <!-- <ul>
      <li v-for="(list, index) in listData" :key="index">{{ list }}</li>
    </ul> -->
  </div>
</template>

<script>
export default {
  name: "Category",
  data() {
    return {};
  },
  components: {},
  props: ["listData", "title"],
};
</script>

<style scoped>
.category {
  background-color: skyblue;
  width: 200px;
  height: 300px;
}
h3 {
  text-align: center;
  background-color: orange;
}
img {
  width: 100%;
}
</style>
